/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package camara.Models;

import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;

/**
 *
 * @author camara
 */
public class Test {
     //private static final String UNIT = "PUCLOUD";
    public static void main (String [] args) {
        
       Factory factory = new Factory ();
       factory.open();
        
        /**********Get list users******************************/
        List<User> listUser = factory.userFindAll();
        for (User user : listUser) {
            System.out.println("+++++++++++++++++++++Nom : ++++++++++++++++++++++++++++++++++++"+user.getNom());
            
        }
        
        
       factory.close();
        
        
        
    }
    
}
